<?php if ($this->pageCount): ?>
<div class="paginationControl" align="center">
 
<?php if (isset($this->previous)):?>
          <a href="<?php echo $this->url(array('controller'=>'media','action'=>'searchimg','module'=>'admin','page' => $this->previous))?>">  Previous |</a>
   <?php endif;?> 
   <?php foreach ($this->pagesInRange as $page):?>
      <?php if ($page != $this->current):?>
          <a href="<?php echo $this->url(array('controller'=>'media','action'=>'searchimg','module'=>'admin','page' => $page))?>"><?php echo $page?> |</a>
      <?php else:?>
          <?php echo $page . ' | '?>
      <?php endif;?>
   <?php endforeach;?>
    <?php  if (isset($this->next)):?>
        <a href="<?php echo $this->url(array('controller'=>'media','action'=>'searchimg','module'=>'admin','page' => $this->next))?>">Next </a>
      <?php  endif; ?>
</div>
<?php endif; ?>